/*


 */

package jas.rpc.client;

/**
 * Serializes and deserializes objects on the client side. This is responsible
 * for translating back and forth between remote objects and references.
 */
public interface ObjectClientSerializer {
	/**
	 * Decodes an object from a string.
	 * @param s encoded string of the object
	 * @param client
	 * @param stubFactory
	 * @return
	 * @throws ClassNotFoundException
	 */
    Object deserializeObject(String s, RpcClient client, StubFactory stubFactory) throws ClassNotFoundException;
    String serializeObject(Object o);
}
